package com.wugh.fast.demo.config;

import org.springframework.cache.annotation.EnableCaching;
import org.springframework.context.annotation.Configuration;
import org.springframework.security.config.annotation.web.builders.HttpSecurity;
import org.springframework.security.config.annotation.web.configuration.EnableWebSecurity;
import org.springframework.security.config.annotation.web.configuration.WebSecurityConfigurerAdapter;

/**
 * 说明:
 *
 * @author wugh
 * @date 2019-04-17 11:25
 */
@Configuration
//@EnableWebSecurity
public class SecurityConfiguration extends WebSecurityConfigurerAdapter {
    @Override
    protected void configure(HttpSecurity http) throws Exception {
        //全部操作允许
        http
                .cors().disable()
                .csrf().disable()
                .authorizeRequests().anyRequest().permitAll()
        ;
    }
}
